import Vue from 'vue'
import VueRouter from 'vue-router'

Vue.use(VueRouter)

const routes = [{
        path: '/',
        name: 'Home',
        component: () =>
            import ('../components/Home.vue')
    },
    {
        path: '/vue2/*',
        name: 'vue2',
        component: () =>
            import ('../components/vue2Page.vue')
    },
    {
        path: '/vue3/*',
        name: 'vue3',
        component: () =>
            import ('../components/vue3Page.vue')
    }
]

const router = new VueRouter({
    mode: 'history',
    routes,
})

export default router